<div id="chooseProductAndSpecModel" class="modal fade" role="dialog" aria-labelledby="chooseProductAndSpecModelLabel"
    aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title" id="chooseProductAndSpecModelLabel">选择商品</h3>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="ibox ">
                    <div class="row">
                        <div class="col-sm-3 m-b-xs">
                            <div class="input-group">
                                <select class="custom-select custom-select-sm" v-model="chooseProductAndSpecInfo.categoryId">
                                    <option selected  value="">请选择商品分组</option>
                                    <option v-for="(item,index) in chooseProductAndSpecInfo.productCategorys" :value="item.categoryId">
                                        {{item.categoryName}}
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-3 m-b-xs">
                            <div class="input-group">
                                <input placeholder="输入商品信息名称" type="text"
                                    v-model="chooseProductAndSpecInfo.prodNameLike"
                                    class="form-control form-control-sm">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            
                            <div class="input-group">

                                <input placeholder="条形码" type="text"
                                    v-model="chooseProductAndSpecInfo.barCode"
                                    class="form-control form-control-sm">
                                <span class="input-group-append">
                                    <button type="button" class="btn btn-sm btn-primary" v-on:click="queryProducts()">
                                        <i class="fa fa-search"></i> 查询
                                    </button>
                                </span>
                            </div>
                        </div>
                    </div>
                    <div class="table-responsive" style="margin-top:15px">
                        <table class="table table-striped">
                            <thead>
                                <tr>
                                    <th class="text-center">商品大类</th>
                                    <th class="text-center">商品名称</th>
                                    <th class="text-center">规格</th>
                                    <th class="text-center">库存</th>
                                    <th class="text-center">商品编号</th>
                                    <th class="text-center">条形码</th>
                                    <th class="text-center">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr v-for="product in chooseProductAndSpecInfo.products">
                                    <td class="text-center">{{product.categoryName}}</td>
                                    <td class="text-center">{{product.prodName}}</td>
                                    <td class="text-center">{{product.specName}}</td>
                                    <td class="text-center">{{product.stock}}</td>
                                    <td class="text-center">{{product.productId}}</td>
                                    <td class="text-center">{{product.barCode}}</td>
                                    <td class="text-center">
                                        <button class="btn btn-primary btn-xs"
                                            v-on:click="chooseProductAndSpec(product)">选择
                                        </button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="row">
                        <div class="col-sm-4">

                        </div>
                        <div class="col-sm-8">
                            <vc:create namespace="chooseProductAndSpec" path="frame/paginationPlus"></vc:create>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>